        <?php        

session_start();
if(isset ($_SESSION['adminability'])){
    include_once 'admin_header.php';
}else{
include 'header.php';
}
include_once 'data_access.php';
$connect=new database_access();
$connect->connect();
        echo '<div id="left">	<div class="left_top"></div>';
        include 'student.php';  
if(isset ($_SESSION['personalnumber'])){
$student=new student();
$student->name=$student->GetName($_SESSION['personalnumber']);
echo '  <br><br> <center><p  style="font-size: large; color: #990000; " >
مرحبا بك   '.$student->name. 
'</p></center>';
}
echo '<form name="email" method="post" action="contactus.php" onSubmit="return validation()">
<table border="0" cellspacing="3"  style="margin:auto; height: 380px; font-size: large;">
  <tr>
      <td><input type="text" name="email" placeholder="الاسم" required="required"  pattern="^[أ-يa-zA-Z ]{2,30}$"></td>
<td >الاسم</td>

  </tr>
  <tr>
      <td><input type="text" name="Subject" cols="17" placeholder="الموضوع" required="required"  pattern="^[أ-يa-zA-Z ]{2,30}$"></td>
<td>الموضوع</td>

  </tr>
 <td><textarea name="message" cols="17" placeholder="الرسالة | الشكوى" required="required"  pattern="^[أ-يa-zA-Z ]{2,30}$"></textarea></td>
 <td>الرسالة | الشكوي</td>
  <tr>
  <td colspan="2"><input type="submit" name="Send" value="ارسال"></td>
  </tr>
</table>
</form>';
      echo '</div><div id="main_bot"></div>';
        include 'footer.php';  
        ?>
